package com.gooluke.mybatis.handler;

import java.lang.reflect.Method;

// 默认方法处理器
public class DefaultMethodHandler implements MethodHandler {
    private final Method method;

    public DefaultMethodHandler(Method method) {
        this.method = method;
    }

    @Override
    public Object handle(Object[] args) {
        System.out.println("Default handling for method: " + method.getName());
        if (method.getReturnType() == String.class) {
            return "Default result for " + method.getName();
        }
        return null;
    }
}